﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Election
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Main_login login = new Main_login();
            login.ShowDialog();
            if (Main_login.loggedin == true)
            {
                string role = "";

               role =  orcl.checkRoleOfUser();

                if(role == "TOGIAMSAT")
                Application.Run(new GiamSat());
                else 
                    if(role == "TOLAPDANHSACH")
                        Application.Run(new ToLapDSNguoiDiBau.ToLapDanhSachNDB());
            }
        }
    }
}
